class CheckInController < ApplicationController

  def index
    node = Node.find_by_mac(params[:mac])
    node.remote_addr = params[:ip]
    node.lastseen = Time.now
    node.sys_memfree = params[:memfree]
    node.ssid = params[:ssid]
    node.pssid = params[:pssid]
    node.batman_ver = params[:batman_ver]
    node.robin_ver = params[:robin_ver]
    node.users = params[:users]
    node.incoming_bytes = params[:kbdown]
    node.outgoing_bytes = params[:kbup]
    node.uptime = params[:uptime]
    node.gateway = params[:gateway]
    node.gw_qual = params['gw-qual']
    node.hops = params[:hops]
    node.nbs = params[:nbs]
    node.ranks = params[:ranks]
    
  end

end
